----------------------------------Spell Variables--------------------------------------
SPELL.m_iSpellID = 41113 -- Whatever value you want as long as it doesn't override any other spells' IDs.
SPELL.m_iRange = 0
SPELL.m_sName = "Avoidance Tactics"
SPELL.m_sToolTip = "Gain 15 armor and 15% Dodge and Parry for 2 seconds. Costs 50 Energy."
SPELL.m_sIcon = "devin/blackbetty/spells/rogue/avoidancetactics.png"
SPELL.m_iCoolDown = 1
SPELL.m_iManaCost = 50
SPELL.m_bRequiresTarget = false
SPELL.m_iSpellType = SPELLTYPE_MOBILITY
SPELL.m_bRecastWhileCasting = false

---------------------------------------------------------------------------------------

local range = 100
local weapondamage = 20

function SPELL:Cast( pl, target )
	print("Casted "..self.m_sName.."!")
	ParticleEffectAttach( "avoidancetactics", PATTACH_POINT_FOLLOW, pl, pl:LookupAttachment("anim_attachment_RH"))
	pl:EmitSound("devin/blackbetty/weapons/rogue/avoidancetactics.wav", 100, 100)
	pl.ArmorStat = pl.ArmorStat + 15
	pl.Parry = pl.Parry + 0.15
	pl.Dodge = pl.Dodge + 0.15
	timer.Simple(2, function()
		pl.ArmorStat = pl.ArmorStat - 30
		pl.Parry = pl.Parry - 0.15
		pl.Dodge = pl.Dodge - 0.15
	end)
	timer.Simple(0.05, function()
	pl:SetNWBool("Casting", false) 
	pl:SetNWBool("Casted", false)
	end)
end



